package com.niit.guet.w11.session2;

public class EnumDemo {
	enum Mango {
		Carrie(10), Fairchild(9), Haden(12);

		private int price;

		Mango(int p) {
			price = p;
		}

		int getPrice() {
			return price;
		}
	}

	static class EnumTest {
		public static void main(String args[]) {
			for (Mango p : Mango.values())
				System.out.println(p);
		}
	}

}
